<!DOCTYPE html>
<html>

  {% include head.html %}

 <!--  <body data-spy="scroll" data-target="#myAffix"> -->
  <body>

    {% include header.html %}


    <div id="main" class="container main">
      {{ content }}
    </div>

    
    <div id="top" data-toggle="tooltip" data-placement="left" title="回到顶部">
      <a href="javascript:;">
        <div class="arrow"></div>
        <div class="stick"></div>
      </a>
    </div>


    {% include footer.html %}

</body>


<!-- 在新窗口中打开外链，如北邮官网 -->
<script type="text/javascript">

  // Mao: click and open large picture
  $('img[src^="/resources/picture"]').each(function(){

      // console.log($(this).attr("alt"));
      if($(this).attr("class") != "avatar"){
        $(this).wrap("<a href='" + $(this).attr('src') + "' target='_blank'></a>");
      }
  });

  $('img[src^="/resources/Music/keyboard/"]').each(function(){

      // console.log($(this).attr("alt"));
      if($(this).attr("class") != "avatar"){
        $(this).wrap("<a href='" + $(this).attr('src') + "' target='_blank'></a>");
      }
  });

  function addBlankTargetForLinks () {
    $('a[href^="http"]').each(function(){
        $(this).attr('target', '_blank');
    });
  }
  $(document).bind('DOMNodeInserted', function(event) {
    addBlankTargetForLinks();
  });
</script>

<!-- 百度站长 mjw20122009 -->
<script>
  (function(){
      var bp = document.createElement('script');
      var curProtocol = window.location.protocol.split(':')[0];
      if (curProtocol === 'https') {
          bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
      }
      else {
          bp.src = 'http://push.zhanzhang.baidu.com/push.js';
      }
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(bp, s);
      console.log("Call Baidu Site Manager :)");
  })();
</script>

<!-- 百度统计 maojianwei2012 -->
<script>
  var _hmt = _hmt || [];
  (function() {
    var hm = document.createElement("script");
    hm.src = "https://hm.baidu.com/hm.js?9b202a7e23ad2334cc4f39b66239d26a";
    var s = document.getElementsByTagName("script")[0]; 
    s.parentNode.insertBefore(hm, s);
    console.log("Call Baidu Statistics :)");
  })();
</script>

<!-- 谷歌统计 maojianwei2020@gmail.com -->
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-93958526-1', 'auto');
  ga('send', 'pageview');
  console.log("Call Google Analytics :)");
</script>


<!-- swiftype搜索 maojianwei2016@126.com -->
<script type="text/javascript">
  (function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
  (w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
  e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
  })(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
  
  _st('install','XygM4rUaBCr-8oFsFfS4','2.0.0');
  console.log("Load Swiftype Search Engine :)");
</script>


</html>
